package com.example.demo.language;

/**
 * ******************************************************
 *
 * @author liugh9
 * @version 1.0
 * @classname LanguageTypeEnum
 * @description
 * @date 2023/02/16 17:13
 * <p>
 * ******************************************************
 */
public enum LanguageTypeEnum {
    CHINESE(1, "zh"),
    ENGLISH(2, "en"),
    ;
    private Integer id;
    private String language;



    /**
     * 是否为中文环境，若为中文
     * @return
     */
//    public static boolean isZhLanguage() {
//        if (I18nMessageService.getLanguage().equals(ENGLISH)){
//            return false;
//        }
//        return true;
//    }

    LanguageTypeEnum(Integer id, String language) {
        this.id = id;
        this.language = language;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
}
